package Model;

import java.sql.Time;

public class Student {
    private Integer Id;
    private String name;
    private String sex;
    private Integer age;
    private String major;
    private String Time;

    public Student() {
    }

    public Student(Integer id, String name, String sex, Integer age, String major,String Time) {
        Id = id;
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.major = major;
        this.Time= Time;
    }

    /**
     * 获取
     * @return Id
     */
    public Integer getId() {
        return Id;
    }

    /**
     * 设置
     * @param Id
     */
    public void setId(Integer Id) {
        this.Id = Id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return sex
     */
    public String getSex() {
        return sex;
    }

    /**
     * 设置
     * @param sex
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * 获取
     * @return age
     */
    public Integer getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    /**
     * 获取
     * @return major
     */
    public String getMajor() {
        return major;
    }

    /**
     * 设置
     * @param major
     */
    public void setMajor(String major) {
        this.major = major;
    }

    public String getTime() {
        return Time;
    }

    /**
     * 设置
     * @param
     */
    public void setTime(String Time) {
        this.Time = Time;
    }

    public String toString() {
        return "Student{Id = " + Id + ", name = " + name + ", sex = " + sex + ", age = " + age + ", major = " + major + ",Time="+Time+"}";
    }
}
